package com.ruoyi.bom.mapper;

import com.ruoyi.bom.domain.FoodAndBom;
import com.ruoyi.bom.dto.BillFoodPeriodDto;
import com.ruoyi.bom.dto.DeptProlossAndMarginDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BomAnalsysMapper {
    public int insertBomAnalsysByUnusedBom(List<FoodAndBom> list1) ;




    List<FoodAndBom>  queryBomAnalsys(FoodAndBom pandianCode);

    List<BillFoodPeriodDto> findBillFoodPeriod(String pandianCode,String[] foodCodes);

    List<FoodAndBom> findBomCardParse(@Param("pandianCode") String pandianCode, @Param("type")String type);

    List<DeptProlossAndMarginDto> findDeptProloss(@Param("pandianCode") String pandianCode,  @Param("shopCode") String shopCode);

    String getLastPandianCode(String pandianCode);

    List<DeptProlossAndMarginDto> findRealCost(@Param("pandianCode") String pandianCode,  @Param("deptCodes") String[] deptCodes);

    int insertDeptProlossAndMargin(List<DeptProlossAndMarginDto> list);

    List<DeptProlossAndMarginDto> findDeptProlossAndMargin(String pandianCode);

    int delDeptProlossAndMargin(String pandianCode);
}
